###################################################################
# Copyright 2016 Alibaba Group Holding Limited
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA
###################################################################
LOCAL_PATH:=$(call my-dir)

## properties nts dynamic library
include $(CLEAR_VARS)
LOCAL_MODULE:= libnts_properties
LOCAL_SRC_FILES:= properties_tests.cpp properties_legacy_tests.cpp
LOCAL_C_INCLUDES:= $(properties-includes) $(gtest-includes) $(base-includes)
LOCAL_SHARED_LIBRARIES:= libproperties libgtest liblog
LOCAL_LDFLAGS:= -lstdc++
LOCAL_MODULE_PATH:= usr/lib$(lib_suffix)/nts
include $(BUILD_SHARED_LIBRARY)

## property unit test
include $(CLEAR_VARS)
LOCAL_MODULE:= properties_tests
LOCAL_SRC_FILES:= properties_tests.cpp properties_legacy_tests.cpp
LOCAL_C_INCLUDES:= $(properties-includes) $(gtest-includes) $(base-includes)
LOCAL_SHARED_LIBRARIES:= libproperties libgtest libgtest_main liblog
LOCAL_LDFLAGS:= -lstdc++
include $(BUILD_EXECUTABLE)

## unit test config
include $(CLEAR_VARS)
LOCAL_MODULE := framework_libs_properties_testconfig_prebuilt
LOCAL_SRC_FILES := testconfig.json
LOCAL_MODULE_PATH := usr/moduletest/framework/libs/properties
include $(BUILD_PREBUILT)
